﻿using System;
using System.ComponentModel.DataAnnotations.Schema;

namespace LtccApi.Models
{
  /// <summary>
  /// 店铺
  /// </summary>
  [Table("bj_stores")]
  public class Store
  {
    /// <summary>
    /// 序号
    /// </summary>
    /// <value>序号.</value>
    [Column("id")]
    public int ID { get; set; }
    /// <summary>
    /// 店铺名
    /// </summary>
    /// <value>The name.</value>
    [Column("name")]
    public string Name { get; set; }
    /// <summary>
    /// 地址
    /// </summary>
    /// <value>The address.</value>
    [Column("addr")]
    public string Address { get; set; }

    /// <summary>
    /// 经纬度
    /// </summary>
    /// <value>The lng.</value>
    [Column("lng")]
    public string Lng { get; set; }
    /// <summary>
    /// 经纬度
    /// </summary>
    /// <value>The lat.</value>
    [Column("lat")]
    public string Lat { get; set; }
    /// <summary>
    /// 联系人
    /// </summary>
    /// <value>The contact.</value>
    [Column("contact")]
    public string Contact { get; set; }
    /// <summary>
    /// 联系电话
    /// </summary>
    /// <value>The phone.</value>
    [Column("tel")]
    public string Phone { get; set; }
    /// <summary>
    /// 图片
    /// </summary>
    /// <value>The image URL.</value>
    [Column("img")]
    public string ImageUrl { get; set; }
    /// <summary>
    /// 卡车维修
    /// </summary>
    /// <value>The truck fix.</value>
    [Column("truck_fix")]
    public int TruckFix { get; set; }
    /// <summary>
    /// 轿车维修
    /// </summary>
    /// <value>The car fix.</value>
    [Column("car_fix")]
    public int CarFix { get; set; }
    /// <summary>
    /// 工作时间
    /// </summary>
    /// <value>The shop hours.</value>
    [Column("shop_hours")]
    public string ShopHours { get; set; }
    /// <summary>
    /// 维修项目
    /// </summary>
    /// <value>The socpe.</value>
    [Column("scope")]
    public string Socpe { get; set; }

    [NotMapped]
    public double distance { get; set; }
  }
}
